from teach.update_item import My_db
from blog.update_blog import My_blog


def update():
    """更新讲义及博客"""
    my_db = My_db()
    my_blog = My_blog()
    my_db.update_data()
    my_blog.update()


if __name__ == "__main__":
    update()
